let $ = layui.jquery;
let jQuery=$;
let SettingData = {};//配置文件参数
let SeleteData = {};//筛选参数
let current =1;
let raw = '';//排序
let InitData={};
let table_config = {
    "header": {
        "button": [
            {
                "title": "新增",
                "icon": "icon-add-bold",
                "btn_class": "btn_theme_1",
                "is_drop": 2,
                "type": "window",
                "url": "/ruinuo/database/add/",
                "where": null,
                "width": 0,
                "height": 0,
                "node": "ruinuo:database:add"
            },
            {
                "title": "同步所有",
                "icon": null,
                "btn_class": "btn_theme_4",
                "is_drop": 2,
                "type": "ajax",
                "url": "/ruinuo/database/sync/",
                "where": null,
                "width": 0,
                "height": 0,
                "node": "ruinuo:database:sync"
            }
        ],
        "tab": [],
        "search": {
            "datetime": [],
            "like": "表名|注释"
        },
        "sum": []
    },
    "left": {
        "status": 2,
        "title": null,
        "options_id": null,
        "key_field": "value",
        "show_field": "label",
        "field": null,
        "type": 1,
        "url": {
            "title": "",
            "list": "/common/options/leftlists/?num=",
            "add": "",
            "edit": "",
            "delete": "",
            "width": "",
            "height": ""
        }
    },
    "source": "database_engine,database_collation,delete_type,yesno",
    "table": {
        "button": [
            {
                "title": "修改",
                "icon": "icon-edit",
                "btn_class": "btn_theme_1",
                "is_drop": 2,
                "type": "window",
                "url": "/ruinuo/database/edit/?id={id}",
                "where": null,
                "width": 0,
                "height": 0,
                "node": "ruinuo:database:edit"
            },
            {
                "title": "删除",
                "icon": "icon-ashbin",
                "btn_class": "btn_theme_2",
                "is_drop": 2,
                "type": "ajax",
                "url": "/ruinuo/database/delete/?id={id}",
                "where": null,
                "width": 0,
                "height": 0,
                "node": "ruinuo:database:delete"
            },
            {
                "title": "同步",
                "icon": "icon-earth1",
                "btn_class": "btn_theme_4",
                "is_drop": 2,
                "type": "ajax",
                "url": "/ruinuo/database/sync/?table_name={d.name}",
                "where": "",
                "width": 0,
                "height": 0,
                "node": "ruinuo:database:sync"
            },
            {
                "title": "敏感字段",
                "icon": "icon-jubao",
                "btn_class": "btn_theme_0",
                "is_drop": 2,
                "type": "window",
                "url": "/ruinuo/database/sensitive/?table_name={d.name}",
                "where": "",
                "width": 0,
                "height": 0,
                "node": "ruinuo:database:sensitive"
            }
        ],
        "style": 1,
        "parent_id": "parent_id",
        "parent_name": "title",
        "limit": 30,
        "tab_sum": "",
        "page": true,
        "elem": "datatable",
        "height": "full-85",
        "update": "/ruinuo/database/update_field/",
        "url": "/ruinuo/database/index/",
        "cols": [
            {
                "id": "1713774701_10_1",
                "field": "name",
                "title": "表名"
            },
            {
                "id": "1713774701_10_2",
                "field": "comment",
                "title": "注释"
            },
            {
                "id": "1713774702_10_3",
                "field": "engine",
                "title": "引擎",
                "width": "120",
                "search": "select",
                "options": "database_engine",
                "minWidth": "120"
            },
            {
                "id": "1713774704_10_5",
                "field": "collation",
                "title": "字符集",
                "width": "200",
                "search": "select",
                "options": "database_collation",
                "minWidth": "200"
            },
            {
                "id": "1722823087_6_10",
                "field": "delete_type",
                "title": "删除方式",
                "width": "120",
                "search": "select",
                "options": "delete_type",
                "minWidth": "120"
            },
            {
                "id": "1722859435_6_7",
                "field": "del_log",
                "title": "删除日志",
                "width": "120",
                "search": "select",
                "options": "yesno",
                "minWidth": "120"
            },
            {
                "id": "1713774711_10_8",
                "field": "update_id",
                "title": "修改人",
                "width": "120",
                "minWidth": "120"
            },
            {
                "id": "1713774710_10_7",
                "field": "update_time",
                "title": "更新时间",
                "width": 160,
                "minWidth": 160
            }
        ]
    }
};
let form_config = {
    detail:'/ruinuo/database/detail/',
    add:'/ruinuo/database/add/',
    edit:'/ruinuo/database/edit/',
    data:{
    "name": "",
    "comment": "",
    "engine": "",
    "collation": "",
    "delete_type": "",
    "del_log": "",
    "old_name": "",
    "field": ""
},
    label_width:'',
    form_label:'form_right',
    onclick:[],
};
